package com.earl.gsm.service.impl.financerecord;

import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.earl.gsm.commons.dao.BaseDao;
import com.earl.gsm.commons.service.BaseServiceImpl;
import com.earl.gsm.dao.FinanceRecordDao;
import com.earl.gsm.domain.gsm.finance.FinanceRecord;
import com.earl.gsm.service.FinanceRecordService;

@Service
@Transactional
public class FinanceRecordServiceImpl extends BaseServiceImpl<FinanceRecord, FinanceRecord>
        implements FinanceRecordService {

    private static Logger logger = Logger.getLogger(FinanceRecordServiceImpl.class);

    @Resource
    private FinanceRecordDao dao;

    @Override
    protected BaseDao<FinanceRecord> getDao() {
        return dao;
    }
    
    @Override
    public List<FinanceRecord> countRate(String minDate,String maxDate){
    	return dao.countRate(minDate,maxDate);
    }

}
